<template>
  <div id="app">
    <el-container>
      <el-header>Maven + Servlet +　Mybatis + Vue + ElementUI整合开发</el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            router
            :default-active="$route.path"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>学生管理</span>
              </template>
                <el-menu-item :index="'/student'">学生列表</el-menu-item>
            </el-submenu>
             <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-menu"></i>
                <span>班级管理</span>
              </template>
                <el-menu-item :index="'/classes'">班级列表</el-menu-item>
            </el-submenu>
          </el-menu>
          
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
* {
  padding: 0;
  margin: 0;
}
.el-header,
.el-footer {
  background-color: rgb(84,92,100);
  color: white;
  text-align: right;
  line-height: 60px;
}
.el-menu{
  border:0 !important
}
.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  height: 800px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-menu-item{
  margin-left:20px;
}
</style>
